package com.albaba.designpattern.iterator.text_002;

/**
 * @Description: 具体集合类
 * @Author zx
 * @Date 2025/2/25 17:10
 * @Version 1.0
 */
public class TopicList implements ListList<Topic>{


    private Topic[] topics;

    public TopicList(Topic[] topics) {
        this.topics = topics;
    }

    @Override
    public IteratorIterator<Topic> iterator() {
        return new TopicIterator(topics);
    }
}
